import Machine from "./Machine";
import eState from "./eState";
import StateEvent from "./StateEvent";

/**
 * 具体的每个状态
 * created by Five on 2018-12-4 19:00:41
 */

// 空闲
export class Idle extends Machine {
    StateID: eState = eState.IDLE;

}

// 移动
export class Move extends Machine {
    StateID: eState = eState.MOVE;
    Moveable: boolean = true;
}

// 跳跃
export class Jump extends Machine {
    StateID: eState = eState.JUMP;
    Moveable: boolean = true;
    Execute(se: StateEvent) {
    }
}

// 攻击
export class Attack extends Machine {
    StateID: eState = eState.ATTACK;
    Execute(se: StateEvent) {
    }
}

// 死亡中
export class Dying extends Machine {
    StateID: eState = eState.DYING;
    Execute(se: StateEvent) {
    }
}

// 死亡
export class Dead extends Machine {
    StateID: eState = eState.DAED;
    Execute(se: StateEvent) {
    }
}

// 下蹲
export class Squat extends Machine {
    StateID: eState = eState.SQAUT;
}